/**
 * Copyright &copy; 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
 */
package com.jeeplus.modules.infor.entity;


import com.fasterxml.jackson.annotation.JsonFormat;
import com.jeeplus.core.persistence.DataEntity;
import com.jeeplus.common.utils.excel.annotation.ExcelField;

import java.util.Date;

/**
 * 绩效运价Entity
 * @author 李超辉
 * @version 2019-04-28
 */
public class Achievements extends DataEntity<Achievements> {
	
	private static final long serialVersionUID = 1L;
	private NewCustomers customer;		// 客户 父类
	private String type;		// 作业类型
	private NewWidth width;		// 吨位区间
	private String jxyj;		// 绩效运价
	private Date qsrq;		// 生效日期
	private Date jzrq;		// 失效日期
	private String pro;

	
	public Achievements() {
		super();
	}

	public Achievements(String id){
		super(id);
	}

	public Achievements(NewCustomers customer){
		this.customer = customer;
	}
	@ExcelField(title="收货单位名称", fieldType=NewCustomers.class, value="customer.dwmc", align=2, sort=6)
	public NewCustomers getCustomer() {
		return customer;
	}

	public void setCustomer(NewCustomers customer) {
		this.customer = customer;
	}
	
	@ExcelField(title="作业类型", align=2, sort=8)
	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}
	
	@ExcelField(title="吨位区间",fieldType=NewWidth.class, value="width.width", align=2, sort=9)
	public NewWidth getWidth() {
		return width;
	}

	public void setWidth(NewWidth width) {
		this.width = width;
	}
	
	@ExcelField(title="绩效运价", align=2, sort=10)
	public String getJxyj() {
		return jxyj;
	}

	public void setJxyj(String jxyj) {
		this.jxyj = jxyj;
	}
	@JsonFormat(pattern = "yyyy-MM-dd")
	@ExcelField(title="生效日期", align=2, sort=11)
	public Date getQsrq() {
		return qsrq;
	}

	public void setQsrq(Date qsrq) {
		this.qsrq = qsrq;
	}
	@JsonFormat(pattern = "yyyy-MM-dd")
	@ExcelField(title="失效日期", align=2, sort=12)
	public Date getJzrq() {
		return jzrq;
	}

	public void setJzrq(Date jzrq) {
		this.jzrq = jzrq;
	}
	@ExcelField(title="项目", align=2, sort=13)
	public String getPro() {
		return pro;
	}

	public void setPro(String pro) {
		this.pro = pro;
	}
}